class LineAreaChart
  constructor: (container, options)->
    @initOptions options
    @chart = echarts.init(container)
    @chart.setOption(@defOptions)

  initOptions: (options)->
    @defOptions =
      grid: x: 0, y: 0, x2: 0, y2: 0, borderColor: 'rgba(0,0,0,0)'
      tooltip : trigger: 'axis'
      legend:
        data:['default'],
        show: false
      toolbox: show : false
      calculable : true,
      xAxis : [{
        show: true
        type : 'category'
        boundaryGap : false
        axisLine: show: false
        axisLabel: show: false
        splitLine:
          show: true
          lineStyle: color: 'rgb(6, 8, 13)'
        data: [1..10]
      }]
      yAxis: [{type : 'value',show: false, min: 0, max: 100}]
      series: []
      animation: false

    _.extend @defOptions, options

globalDefined "LineAreaChart", LineAreaChart
